<?php 
if(!empty($this->Item)):
	$config = new Zendvn_Controller_Config(array('module'=> 'admin', 'fileConfig'=>'doctor.ini'));
	$pictureConfig = $config->getConfig('doctor');
	
	$name = Zendvn_Filter_Filter::filterContent($this->Item['name'], 'filter');
	if(file_exists($pictureConfig['thumbDir1'] . '/' . $this->Item['picture']) &&  !empty($this->Item['picture'])){
		$pictureUrl 	= $pictureConfig['thumbUrl1'] . '/' . $this->Item['picture'];
		$pictureUrlOrginal = $pictureConfig['uploadUrl'] . '/' . $this->Item['picture'];
	}else{
		$pictureUrlOrginal = $pictureUrl = FILE_URL . '/images/no-image.png';
	}
		
	$description = Zendvn_Filter_Filter::filterContent($this->Item['description'], 'filter');
	$content = Zendvn_Filter_Filter::filterContent($this->Item['content'], 'filter');
?>
<hgroup class="page-head">	                                                       		
	<h1><span><?php echo $name?></span></h1>
	<h5><?php echo $description?></h5>                                
</hgroup>
<div id="container">
	<div id="content" class="full-width"></div>
	<div class="official clearfix">
		<div id="content" class="doctor-page">
			<article id="post-42" class="post-42 doctor type-doctor status-publish hentry clearfix">
				<div class="doctor-img">													
					<a href="<?php echo $pictureUrlOrginal?>" title="<?php echo $name?>" class="pretty-photo"><img class="img-border" src="<?php echo $pictureUrl?>" alt="<?php echo $name?>"></a>      
<!-- 					<a href="https://twitter.com/#!/envato" class="twitter"></a> -->
<!-- 					<a href="http://www.facebook.com/envato" class="facebook"></a> -->
				</div>
				<?php echo $content?>
			</article>
		</div>
		<?php echo $this->render('includes/right-section.php')?>
	</div>
</div>
<?php endif;?>